Completeness in dependency networks

ABSTRACT

The invention improves document generation systems in which data is collected to enable automated, customised document generation. initially, a questionnaire which defines a dataset is completed. The system then determines which variables are relevant, and then determines whether all relevant variables are in the dataset. Finally, the system generates a fully customised document if the dataset is complete.

CLAIM OR PRIORITY

Applicant claims priority to provisional application Ser. No. 60/710,727filed Aug. 23, 2005.

FIELD OF THE INVENTION

The present invention relates to the collection of data. The presentinvention may be applied in particular to systems capable of generatingcustomised documents in which data is collected to enable a customiseddocument to be generated.

BACKGROUND OF THE INVENTION

There are innumerable applications which require the collection of data.For example, one particular area of interest is the creation ofcustomised documents from document templates. A document templatecontains those parts of the document which are common to all documentsgenerated from the templates. The template also comprises variousportions of document content (such as text or images) whose inclusion inthe final document depends on particular information. The final contentof a completed document will therefore depend on certain pieces ofrelevant information which needs to be collected. For example, in alegal contract it is usually necessary to include a clause whichspecifies the law governing the contract and the particular wording ofthis clause will depend on the jurisdiction involved (such as ‘Englandand Wales’, ‘Scotland’ or ‘Japan’). It is therefore necessary todetermine the relevant jurisdiction before a completed document can begenerated. Once the jurisdiction is determined, the appropriate clausewording is inserted into the document template at the appropriateposition to create a partially customised document. Once all furtherrelevant information is known, a fully customised document can begenerated by inserting all the necessary portions of document content.

Sometimes, certain information may be relevant and need to be collectedin some cases but not relevant in other cases. For example, in the aboveexample of a legal contract, where the jurisdiction is Japan, thedocument may be required to specify to which court (such as ‘Tokyo’ or‘Kyoto’) legal proceedings should be brought. In this case, thecompleted document can only be generated if this further piece ofinformation is known. However, if the jurisdiction is not Japan, thenthis information is not relevant and is not required to generate acompleted document.

The collection of data is often performed using a questionnaire. Forexample, in an electronic document generation system a user may beprompted to answer various questions presented on a user interface bytyping information into text boxes, by selecting buttons and so on. Insome systems the questionnaire may be arranged so that those questionswhich are not relevant are indicated as such. For example, thosequestions that are not relevant may be ‘greyed out’ so that the user isunable to input any data for those questions. In the above example,where the user has indicated in a previous question that thejurisdiction is ‘England and Wales’ or ‘Scotland’ the question relatingto the Japanese court is greyed out since this question is not relevant.

When data collection is required, it is often important to ensure thatall relevant information has been properly collected. In the aboveexample, it is important that all relevant information has beencollected to ensure that the resulting legal contract is complete. Ifcertain information was missing, this could render the contract invalidor ineffective. In cases where the relevance of a piece of informationdepends on other pieces of information it can be extremely difficult todetermine whether all relevant information has been collected.

In the case of the generation of official documents such as legaldocuments, previously it has been necessary for an expert such as alawyer to review the final document to ensure that the documents arecomplete and contain all the relevant information. However, thisapproach is expensive and time consuming. Also, if an expert is notavailable, it may not be possible to generate a final document with ahigh degree of certainty that the document contains all relevantinformation.

The present invention addresses the problems set out above.

BRIEF DESCRIPTION OF THE FIGURES

FIGS. 1, 2 and 3 show three examples of well-formed dependency networks;

FIGS. 4 and 5 show two examples of dependency networks that are notwell-formed;

FIG. 6 shows a table of examples of comparisons between conditions andthe dataset and the result of each comparison;

FIGS. 7, 8 and 9 show tables giving several examples of the evaluationof conditions involving the ‘not’, ‘and’ and ‘or’ operators;

FIG. 10 shows a table illustrating whether the variables of the networksshown in FIGS. 1 and 2 are relevant or not given various datasets; and

FIG. 11 shows a table illustrating whether various datasets are completeor not.

DETAILED DESCRIPTION OF PREFERRED EMBODIMENTS

The embodiment of the invention described below is in the form of adocument generation system for generating customised documents usingdocument templates. The system comprises an electronic questionnaireused to gather information which is used to generate a fully customiseddocument. The questionnaire is implemented as a web page created usingHTML displayed on a suitable computer system and is completed by a userby inputting various information in response to a series of questionspresented on a display. The user may input information using suitableinput devices for example by typing text into text boxes, by selectingbuttons corresponding to different options and by any other suitablemeans. The user may also navigate forwards and backwards through thequestionnaire amending their answers to the questions. The softwarenecessary to run the questionnaire may be stored on any suitable storagedevice or medium, which software is retrieved and executed by aprocessor when required. In some embodiments, the questionnaire web pagemay be accessed independently from several computers connected togetherby a network. This allows different users to complete different parts ofthe questionnaire more easily. In some embodiments, the informationrequired to answer some questions may be provided from a database orother information source. Examples of electronic questionnaires used tocollect information are known to those skilled in the art.

The information which needs to be collected in the described embodimentrelates to a set of data variables. Each question in the questionnaireis associated with a variable and the user's answer to a particularquestion assigns a value to the associated variable. For example, afirst question in the questionnaire may request information relating tothe gender of a person. In this case, ‘gender’ may be regarded as avariable which may take one of two values, ‘male’ or ‘female’ dependingon the user's answer to the first question. A second question mayrequest information relating to whether the person is pregnant or not.In this case ‘pregnant’ may be regarded as a data variable which maytake one of two values, ‘true’ or ‘false’ depending on the user's answerto the second question. As the user answers further questions, thevalues are assigned to further variables. A collection of variables,each having a value assigned to it may be referred to as a dataset. Oncethe user has completed the questionnaire, those variables which havebeen assigned a value form a dataset. It is understood that the phrase‘completing a questionnaire’ does not require that every question beanswered.

When the questionnaire is completed, a customised document may begenerated using the information collected by the questionnaire. Thedocument generation process involves selectively inserting portions ofdocument content at particular locations in a document templatedepending on the information collected. Examples of document generationsystems are described in earlier U.S. patent application Ser. No.10/347,785, incorporated herein by reference and earlier U.S. patentapplication Ser. No. 10/932,266, incorporated herein by reference.

The dataset does not necessarily contain all possible variables sincethose variables corresponding to questions not answered will not beassigned a value and so would not be included in the dataset. A questionmay not have been answered for several reasons. For example, if the userhad answered the question relating to gender by indicating ‘male’,thereby assigning the value ‘male’ to the variable gender, then thequestion relating to pregnancy would have been irrelevant. In this case,the question relating to pregnancy would have been greyed out,preventing the user from providing an answer to this question, so thatthe variable gender would not have been assigned a value and would notbe included in the dataset. Some questions may not have been answeredfor other reasons. For example, the user may have failed to answer oneor more of the questions due to error or because the user did not knowthe answer to those questions. Accordingly, the variables associatedwith those questions not answered would not have been assigned valuesand so will not be included in the dataset.

In the first case where certain questions are not answered due to theirirrelevance, a fully customised document may still be generated sincethe only variables that are missing from the dataset are irrelevantones. In this case the dataset contains all relevant informationnecessary to generate a complete document. In the second case wherecertain questions are not answered due to error or because the answer tothose questions are not known, some relevant variables may be missingfrom the dataset. In this case there may be insufficient information togenerate a complete document.

The present invention provides a system and method for determiningwhether all necessary variables are included in the dataset. In otherwords, the present invention provides a method to determine whether allrelevant information has been collected so that a fully customiseddocument can be generated. In the described embodiment, the dependencyrelationship between the variables is represented by a dependencynetwork. As discussed in greater detail below, the system thendetermines whether each variable in the network is relevant or notrelevant according to a rule. Finally, the system determines whether allrelevant variables are included in the dataset.

A dependency network consists of nodes representing the data variablesand directed arcs between the nodes. The node at the ‘target’ end of thearc represents the dependent variable and the nodes at the ‘source’ endof the arc represent the controlling variables. The arc represents theconditions that relate the dependent variable back to the controllingvariables. In particular, the condition represented by an arc is acondition involving the variables represented by the source nodes thatneeds to be satisfied for the variable represented by the target node tobe relevant. An arc representing a condition may be said to be taggedwith that condition.

Three examples of dependency networks are shown in FIGS. 1, 2 and 3respectively. The dependency network shown in FIG. 1 comprises a firstnode 1 representing the controlling variable ‘gender’ and a second node3 representing the dependent variable ‘pregnant’. An arc 5 connectingthe first and second nodes 1, 3 represents the conditiongender=‘female’.

The dependency network shown in FIG. 2 is one in which an arc has morethan one source node. This network comprises first and second nodes 7, 9representing the controlling variables ‘gender’ and ‘age’ and a thirdnode 11 representing the dependent variable ‘state pension’. An arc 13connecting the first and second nodes 7, 9 to the third node 11represents the condition (gender=“male” and age ≧65) or (gender=“female”and age ≧60).

The dependency network shown in FIG. 3 is one comprising multiple arcs.This network comprises a first node 13 representing the controllingvariable ‘company type’ and second and third nodes 15, 17 representingthe dependent variables ‘director’ and ‘age’. A first arc 19 connectsthe first node 13 and the second node 15, and a second arc 21 connectsthe first node 13 and the third node 17. The first and second arcs 19,21 each represent the condition company type=“plc”. In addition, thenetwork of FIG. 3 comprises a fourth node 23 representing the dependentvariable ‘enforced retirement’. A third arc 25 representing thecondition director=“true” and age ≧70 connects the second and thirdnodes 15, 17 with the fourth node 23. The second and third nodes aresource nodes as well as target nodes and so represent controllingvariables as well as dependent variables.

A dependency network may be said to be well-formed if, and only if thefollowing condition is satisfied:

For every arc which involves two or more source nodes, either:

-   -   (i) none of the source nodes are themselves target nodes of        arcs, or    -   (ii) all of the source nodes are target nodes of other arcs, and        all those arcs are tagged with the same condition.

The dependency networks shown in FIGS. 1, 2 and 3 are all well-formed.FIGS. 4 and 5 show examples of dependency networks which are not wellformed. For example, the network shown in FIG. 4 is not well formedbecause the node 27 representing the variable ‘age’ is not a target nodeof any arc, whereas node 29 representing the variable ‘director’ is atarget node. The network shown in FIG. 5 is not well-formed because thenode 31 representing the variable ‘director’ is not subject to the samecondition as the node 33 representing the variable ‘age’ because thearcs 35 and 37 are tagged with different conditions.

By applying the condition that the dependency networks are well-formed,this ensures that the dependency network is meaningful. Dependencynetworks which are not well-formed would involve conditions which insome situations depend on variables which are relevant and variableswhich are not relevant. Such a condition would not be meaningful.

In order to evaluate the conditions represented by the arcs, thefollowing definitions are provided.

Given a dataset, the evaluation of a condition represented by an arc isa three-valued logic. A condition is true if enough variables are in thedataset to definitely conclude the condition is true. A condition isfalse if enough variables are in the dataset to definitely conclude thecondition is false. Otherwise, a condition is indefinite because one ormore significant variables are not in the dataset.

The result of a comparison is indefinite if the dataset does not containa value for the variable. The result is true if the dataset contains avalue for the variable and the comparison holds. The result is false ifthe dataset contains a value for the variable but the comparison doesnot hold. FIG. 6 shows a table of examples of comparisons and the resultof each comparison given a particular dataset.

Conditions may involve several variables combined together using thelogical operators ‘not’, ‘and’ and ‘or’. In the case of the operator‘not’, the result is indefinite if the negated component is itselfindefinite, the result is true if the negated component evaluates tofalse, and the result is false if the negated component evaluates totrue. FIG. 7 shows a table giving several examples of the evaluation ofconditions involving the ‘not’ operator.

In the case of the operator ‘and’, the result is indefinite if some orall of the individual components evaluate to indefinite, and all theothers evaluate to true. The result is true if all of the individualcomponents evaluate to true and the result is false if at least one ofthe individual components evaluates to false. FIG. 8 shows a tablegiving several examples of the evaluation of conditions involving the‘and’ operator.

In the case of the operator ‘or’, the result is indefinite if some orall of the individual components evaluate to indefinite, and all theothers evaluate to false. The result is true if at least one of theindividual components evaluate to true and the result is false if all ofthe individual components evaluates to false. FIG. 9 shows a tablegiving several examples of the evaluation of conditions involving the‘or’ operator.

The above operators may be used to form more complex conditions bycombining simpler sub-conditions in the usual way with logicaloperators.

Given a well-formed dependency network and a dataset, a variable isdefined as relevant if, and only if:

-   -   (i) the variable is not the target node of any arcs, or    -   (ii) it is the target node of an arc, and all the source node        variables are relevant, and the conditions do evaluate to true        or indefinite.

FIG. 10 shows a table illustrating whether, according to the above rule,the variables of the networks shown in FIGS. 1 and 2 are relevant or notgiven various datasets.

Given a well-formed dependency network, a dataset is defined as completeif, and only if all relevant variables are in the dataset. FIG. 11 showsa table illustrating whether, according to the above rule, variousdatasets are complete or not. The table of FIG. 11 also indicates wherea dataset is not complete by listing those variables which are missingfrom the dataset.

Once the questionnaire has been completed, the system determines, usingthe rules described above, whether each variable is relevant or notrelevant. Due to the dependencies between variables, whether aparticular variable is relevant will depend on the values, if any,assigned to other variables. Then, the system determines whether thedataset produced from the questionnaire is complete or not bydetermining whether all relevant variables are in the dataset. The usermay then be provided with a visual or other indication as to whether ornot the information provided from the questionnaire is sufficient togenerate a fully customised document. In one embodiment a flag is set toeither a value 1 or 0 depending on whether the dataset is complete orincomplete. The system may then use the status of the flag as anindication of completeness. If the dataset is complete a fullycustomised document containing all relevant information is generated. Ifthe dataset is not complete then only a partially customised documentmay be generated.

The invention claimed is:
 1. A computer program stored on anon-transitory computer-readable medium for automated customizeddocument generation where inclusion of document content of a template isbased on evaluation of rules, the rules being evaluated using valuesassigned to content variables of the template, wherein the values arebased on responses to questions of a questionnaire, comprising: logicwhich, for each question of the questionnaire for which a response isreceived, determines a value based on the response and assigns the valueto a corresponding content variable of the template associated with thequestion; logic which, after the questionnaire has been completed, andwhere received responses are insufficient to evaluate all rules,determines: which content variables of the template are relevant; andwhether all relevant content variables of the template are in thedataset of content variables for which values have been assigned,including: that the variables form a well-formed dependency networkwherein the dependency network is said to be well-formed if, and onlyif, the following condition is satisfied: for every arc which involvestwo or more source nodes, either: (i) none of the source nodes arethemselves target nodes of arcs, or (ii) all of the source nodes aretarget nodes of other arcs, and all those arcs are tagged with samecondition; wherein each node represents a variable and each arcrepresents a connection between source nodes and target nodes; and giventhe well-formed dependency network and the dataset, the variable isdefined as relevant if, and only if: (i) the variable is not the targetnode of any arcs, or (ii) it is the target node of an arc, and all thesource node variables are relevant, and the conditions do evaluate totrue or indefinite; and wherein a dataset is defined as complete if, andonly if, all relevant variables are in the dataset and indicating wherea dataset is not complete by listing those variables which are missingfrom the dataset; and logic which generates a fully customized documentfrom the template if it is determined that all relevant contentvariables of the template are in the dataset.
 2. The computer program ofclaim 1 including using the values of the variables to determine whichitems of information are incorporated into a customised document.
 3. Thecomputer program of claim 2 including generating the customised documentwhich is a legal document.
 4. A method for producing a customiseddocument for which inclusion of document content of a template is basedon evaluation of rules, the rules being evaluated using values assignedto content variables of the template, wherein the values are based onresponses to questions of a questionnaire, comprising the steps of:completing a questionnaire to define a dataset of content variables forwhich values have been assigned; determining which content variables ofthe template are relevant; determining whether all relevant variables ofthe template are in the dataset, including: determining that thevariables form a well-formed dependency network wherein the dependencynetwork is said to be well-formed if, and only if, the followingcondition is satisfied: for every arc which involves two or more sourcenodes, either: (i) none of the source nodes are themselves target nodesof arcs, or (ii) all of the source nodes are target nodes of other arcs,and all those arcs are tagged with same condition; wherein each noderepresents a variable and each arc represents a connection betweensource nodes and target nodes; and given the well-formed dependencynetwork and the dataset, the variable is defined as relevant if, andonly if: (i) the variable is not the target node of any arcs, or (ii) itis the target node of an arc, and all the source node variables arerelevant, and the conditions do evaluate to true or indefinite; andwherein a dataset is defined as complete if, and only if, all relevantvariables are in the dataset and indicating where a dataset is notcomplete by listing those variables which are missing from the dataset;and where received responses are insufficient to evaluate all rules,generating a fully customised document if all relevant variables of thetemplate are in the dataset.
 5. The method of claim 4 including usingthe values of the variables to determine which items of information areincorporated into a customized document.
 6. The method of claim 5including generating the customized document which is a legal document.